/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaclientcp3110.Model.Component;

import common.Objects.Component;
import common.DAO.Factory.DAOFactory;

/**
 *
 * @author Richard Irons
 */
public class CompEditModel {
    private Component editComponent;

    public CompEditModel() {
        editComponent = new Component();
    }

    public Component getEditComponent() {
        return editComponent;
    }

    public void setEditComponent(Component editComponent) {
        this.editComponent = editComponent;
    }
    public boolean editComponent() {
        return DAOFactory.getDAOFactory().getComponentDAO().editComponent(editComponent);
    }
}
